local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1
L0_1 = {}
L0_1.group_id = 133003040
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 40001
L2_1.gadget_id = 70690013
L3_1 = {}
L3_1.x = 2406.765
L3_1.y = 284.865
L3_1.z = -1595.998
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 0.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 10
L2_1.area_id = 1
L3_1 = {}
L3_1.config_id = 40003
L3_1.gadget_id = 70690001
L4_1 = {}
L4_1.x = 2410.048
L4_1.y = 338.978
L4_1.z = -1608.779
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 358.479
L4_1.y = 169.66
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.area_id = 1
L4_1 = {}
L4_1.config_id = 40004
L4_1.gadget_id = 70690001
L5_1 = {}
L5_1.x = 2411.842
L5_1.y = 339.244
L5_1.z = -1618.613
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 358.479
L5_1.y = 169.662
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L4_1.area_id = 1
L5_1 = {}
L5_1.config_id = 40005
L5_1.gadget_id = 70690001
L6_1 = {}
L6_1.x = 2413.636
L6_1.y = 339.509
L6_1.z = -1628.447
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 358.479
L6_1.y = 169.66
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L5_1.area_id = 1
L6_1 = {}
L6_1.config_id = 40006
L6_1.gadget_id = 70690001
L7_1 = {}
L7_1.x = 2415.43
L7_1.y = 339.774
L7_1.z = -1638.282
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 313.058
L7_1.y = 170.267
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.area_id = 1
L7_1 = {}
L7_1.config_id = 40007
L7_1.gadget_id = 70690001
L8_1 = {}
L8_1.x = 2416.249
L8_1.y = 346.403
L8_1.z = -1643.054
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 270.649
L8_1.y = 286.334
L8_1.z = 0.001
L7_1.rot = L8_1
L7_1.level = 1
L7_1.area_id = 1
L8_1 = {}
L8_1.config_id = 40008
L8_1.gadget_id = 70690001
L9_1 = {}
L9_1.x = 2416.139
L9_1.y = 356.402
L9_1.z = -1643.022
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 270.649
L9_1.y = 286.393
L9_1.z = 0.001
L8_1.rot = L9_1
L8_1.level = 1
L8_1.area_id = 1
L9_1 = {}
L9_1.config_id = 40009
L9_1.gadget_id = 70690001
L10_1 = {}
L10_1.x = 2416.03
L10_1.y = 366.401
L10_1.z = -1642.99
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 288.932
L10_1.y = 134.015
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L9_1.area_id = 1
L10_1 = {}
L10_1.config_id = 40010
L10_1.gadget_id = 70690001
L11_1 = {}
L11_1.x = 2438.475
L11_1.y = 380.088
L11_1.z = -1655.0
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 2.728
L11_1.y = 115.644
L11_1.z = 359.14
L10_1.rot = L11_1
L10_1.level = 1
L10_1.area_id = 1
L11_1 = {}
L11_1.config_id = 40011
L11_1.gadget_id = 70690001
L12_1 = {}
L12_1.x = 2447.48
L12_1.y = 379.612
L12_1.z = -1659.323
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 2.727
L12_1.y = 115.644
L12_1.z = 359.14
L11_1.rot = L12_1
L11_1.level = 1
L11_1.area_id = 1
L12_1 = {}
L12_1.config_id = 40012
L12_1.gadget_id = 70690001
L13_1 = {}
L13_1.x = 2456.485
L13_1.y = 379.136
L13_1.z = -1663.647
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 2.727
L13_1.y = 115.644
L13_1.z = 359.14
L12_1.rot = L13_1
L12_1.level = 1
L12_1.area_id = 1
L13_1 = {}
L13_1.config_id = 40013
L13_1.gadget_id = 70690001
L14_1 = {}
L14_1.x = 2465.49
L14_1.y = 378.66
L14_1.z = -1667.968
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 2.727
L14_1.y = 115.644
L14_1.z = 359.14
L13_1.rot = L14_1
L13_1.level = 1
L13_1.area_id = 1
L14_1 = {}
L14_1.config_id = 40014
L14_1.gadget_id = 70690001
L15_1 = {}
L15_1.x = 2474.495
L15_1.y = 378.184
L15_1.z = -1672.292
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 2.727
L15_1.y = 115.644
L15_1.z = 359.14
L14_1.rot = L15_1
L14_1.level = 1
L14_1.area_id = 1
L15_1 = {}
L15_1.config_id = 40015
L15_1.gadget_id = 70690001
L16_1 = {}
L16_1.x = 2483.5
L16_1.y = 377.709
L16_1.z = -1676.615
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 2.727
L16_1.y = 115.644
L16_1.z = 359.14
L15_1.rot = L16_1
L15_1.level = 1
L15_1.area_id = 1
L16_1 = {}
L16_1.config_id = 40016
L16_1.gadget_id = 70690001
L17_1 = {}
L17_1.x = 2492.504
L17_1.y = 377.233
L17_1.z = -1680.938
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 2.728
L17_1.y = 115.644
L17_1.z = 359.14
L16_1.rot = L17_1
L16_1.level = 1
L16_1.area_id = 1
L17_1 = {}
L17_1.config_id = 40017
L17_1.gadget_id = 70690010
L18_1 = {}
L18_1.x = 2416.239
L18_1.y = 286.567
L18_1.z = -1643.001
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 0.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 10
L17_1.area_id = 1
L18_1 = {}
L18_1.config_id = 40018
L18_1.gadget_id = 70710126
L19_1 = {}
L19_1.x = 2406.765
L19_1.y = 287.908
L19_1.z = -1596.004
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 0.0
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L18_1.area_id = 1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
L1_1[13] = L14_1
L1_1[14] = L15_1
L1_1[15] = L16_1
L1_1[16] = L17_1
L1_1[17] = L18_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 40002
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 30
L3_1 = {}
L3_1.x = 2571.547
L3_1.y = 358.537
L3_1.z = -1712.473
L2_1.pos = L3_1
L2_1.area_id = 1
L3_1 = {}
L3_1.config_id = 40019
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 4
L4_1 = {}
L4_1.x = 2406.765
L4_1.y = 287.905
L4_1.z = -1595.985
L3_1.pos = L4_1
L3_1.area_id = 1
L1_1[1] = L2_1
L1_1[2] = L3_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1040002
L2_1.name = "ENTER_REGION_40002"
L3_1 = EventType
L3_1 = L3_1.EVENT_ENTER_REGION
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_ENTER_REGION_40002"
L2_1.action = "action_EVENT_ENTER_REGION_40002"
L3_1 = {}
L3_1.config_id = 1040019
L3_1.name = "ENTER_REGION_40019"
L4_1 = EventType
L4_1 = L4_1.EVENT_ENTER_REGION
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_ENTER_REGION_40019"
L3_1.action = "action_EVENT_ENTER_REGION_40019"
L1_1[1] = L2_1
L1_1[2] = L3_1
triggers = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 40001
L5_1 = 40003
L6_1 = 40005
L7_1 = 40006
L8_1 = 40007
L9_1 = 40008
L10_1 = 40009
L11_1 = 40010
L12_1 = 40012
L13_1 = 40014
L14_1 = 40016
L15_1 = 40017
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L3_1[11] = L14_1
L3_1[12] = L15_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 40002
L3_1[1] = L4_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ENTER_REGION_40002"
L3_1[1] = L4_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L1_1[1] = L2_1
L1_1[2] = L3_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 40002 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_40002 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RemoveExtraGroupSuite
  L3_2 = A0_2
  L4_2 = 133003040
  L5_2 = 1
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_40002 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 40019 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_40019 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 40018
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_entity_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_40019 = L1_1
